package com.develophelper.example.tkmapper.domain.handler;

import com.develophelper.example.tkmapper.domain.entity.User;
import com.develophelper.example.tkmapper.domain.repository.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author snaildev
 * @date 2020/12/04
 **/
@Service
public class UserHandler {

    @Resource
    private UserMapper userMapper;


    public int batchInsert(List<User> list) {
        return userMapper.batchInsert(list);
    }

    public User selectByPrimaryKey(int id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
